package com.blacksheep.mtm.dao;

import com.blacksheep.mtm.pojo.manager.TbIceOut;
import com.blacksheep.mtm.pojo.manager.TbIceOutKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbIceOutMapper {
    int deleteByPrimaryKey(TbIceOutKey key);

    int insert(TbIceOut record);

    int insertSelective(TbIceOut record);

    TbIceOut selectByPrimaryKey(TbIceOutKey key);

    int updateByPrimaryKeySelective(TbIceOut record);

    int updateByPrimaryKey(TbIceOut record);

    List<TbIceOut> selectList(@Param("search") String search,@Param("minDate") String minDate,
                              @Param("maxDate") String maxDate, @Param("orderCol") String orderCol,
                              @Param("orderDir") String orderDir);

    TbIceOut selectLastOneByCode(String code);

    TbIceOut selectMinOneByCode(@Param("code") String code,@Param("minDate") Long minDate,@Param("maxDate")Long maxDate);
}